package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.educational.entity.CustomerBindStudent;
import com.yuyou.fn.educational.vo.CustomerBindStudentVo;

import java.util.List;

/**
 *
 * CustomerBindStudent 表数据服务层接口
 *
 */
public interface ICustomerBindStudentService extends ISuperService<CustomerBindStudent,Long> {

   List<CustomerBindStudentVo> findStudentsByUserIds(Long userId);

   CustomerBindStudent findByStudentIdAndUserId(Long studentId,Long userId);

   void deleteByStudentIdAndUserId(Long studentId,Long userId);

   void insertByStudentId(Long studentId,Long userId);

   CustomerBindStudentVo findBindStudentDetail(Long studentId );

   void updateBindStudentInfo(Long studentId ,Long gradeId,String school , String location , String address ) ;

   void addBind(Long userId, String studentName, String studentPhoneNo);

   List<CustomerBindStudent> findStudentsByCustomerUserIds(List<Long> userIds);

   /**
    * 合并两个库（本地&会员）绑定学员
    * @param userId
    * @param memberId
    */
   void mergeMemberCenterBind(Long userId, String memberId);

   void autoBindStudent(Long userId , String phoneNo );

   void mergeBindByOriginAndTargetStudentId(long originStudentId, long targetStudentId);
}